package com.example.cms.until;

import java.util.regex.Pattern;

/**
 * @ClassName RegularExpressionUtil
 * @Descriptiom TODO
 * @Author Sunbird
 * @Date 2018/11/22 13:48
 * @Version 1.0
 **/
public class RegularExpressionUtil {
    public static String specialCode="[`~!@#$%^&*()+=|{}':;',\\[\\].<>/?~！@#￥%……&*（）——+|{}【】‘；：”“’。，、？]";

    /*
     * @Author Sunbird
     * @Description 正则表达式的验证
     * @Date  2018/11/22
     * @Param regular ,str
     * @return
     **/

    public static boolean check(String regular ,String str){
        return Pattern.matches(regular,str);
    }
}
